<?php
namespace App\Http\Requests\Api;

class VerificationCodeRequest extends FormRequest{

    public function rules(){
        return [
            'captcha_key' => 'required|string',
            'captcha_code' => 'required|string',
        ];
    }

    public function attributes(){
        return [
            'captcha_key' => '图片验证码 key',
            'captcha_code' => '图片验证码',
        ];
    }

    public function messages(){
        return [
            'captcha_code.required' => '您好，请填写图片验证码'
        ];
    }
}
